(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
"use strict";

(function () {
    var template = function template(self) {
        self.$uid = "switch_" + Math.random().toString(36).substring(3);
        return "<aux-view>" + self.innerHTML + "</aux-view>";
    };

    document.auiDefineElement("aux-tab-navs", {
        template: template,
        props: {},

        created: function created(self) {
            self.$ele.root = self.children[0];
            self.$activeIndex = self.$ele.root.children[0];
            self.$lastActiveIndex = self.$ele.root.children[0];
            self.getTab = function (sel) {
                return self.$ele.root.auiFindSelector("[aux-tab=" + sel + "]");
            };
        },
        attached: function attached(self) {
            self.$ele.root.auiOn("click", function (e) {
                self.forTab = document.querySelector("[aux-tab-navs=\"" + self.getAttribute("for") + "\"]");
                if (!self.forTab) {
                    throw new Error("tab not searched");
                }
                if (e.target) {
                    if (e.target.classList.contains("active")) {} else {
                        var fel = Array.prototype.slice.call(self.$ele.root.children).indexOf(e.target);
                        self.forTab.selected = fel;
                        self.$activeIndex = e.target;
                        e.target.auiAddOnceClass("active");
                        if (self.$lastActiveIndex) {
                            self.$lastActiveIndex.auiRemoveOnceClass("active");
                            self.$lastActiveIndex = e.target;
                        }
                    }
                }
            }, {
                target: "aux-tab-nav"
            });
        }
    });
})();
},{}]},{},[1])